package com.aeroyun.macross.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 支出
 * </p>
 *
 * @author dongjiming
 * @since 2018-08-10
 */
@TableName("cs_expense")
public class Expense extends Model<Expense> {

    private static final long serialVersionUID = 1L;

    /**
     * 支出ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 所属农户
     */
    @TableField("peasant_household_id")
    private Integer peasantHouseholdId;
    /**
     * 支出类别
     */
    @TableField("expense_type")
    private String expenseType;
    /**
     * 年支出金额
     */
    @TableField("annual_expense")
    private String annualExpense;
    /**
     * 支出说明
     */
    @TableField("expense_remarks")
    private String expenseRemarks;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPeasantHouseholdId() {
        return peasantHouseholdId;
    }

    public void setPeasantHouseholdId(Integer peasantHouseholdId) {
        this.peasantHouseholdId = peasantHouseholdId;
    }

    public String getExpenseType() {
        return expenseType;
    }

    public void setExpenseType(String expenseType) {
        this.expenseType = expenseType;
    }

    public String getAnnualExpense() {
        return annualExpense;
    }

    public void setAnnualExpense(String annualExpense) {
        this.annualExpense = annualExpense;
    }

    public String getExpenseRemarks() {
        return expenseRemarks;
    }

    public void setExpenseRemarks(String expenseRemarks) {
        this.expenseRemarks = expenseRemarks;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Expense{" +
        "id=" + id +
        ", peasantHouseholdId=" + peasantHouseholdId +
        ", expenseType=" + expenseType +
        ", annualExpense=" + annualExpense +
        ", expenseRemarks=" + expenseRemarks +
        "}";
    }
}
